import { QL } from 'iflux2'

export const totalPriceQL = QL("totalPriceQL",[
    "order",
    (order) => {
        return order.get('itemList').reduce((price,item) => {
            return price + item.get('itemprice') * item.get('itemnum');
        },0)
    }
])